package com.blackline.UI.REPORTS;

import java.util.List;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Aug, 2013
 * <p>click Edit link from an item of Reporting page.
 * Please refer to UI.EditReport.png in doc-files.
 */
public class EditReport {
	/**
	 * Save Report
	 */
	@FindBy(xpath = "//div[@id='editReportSave']")
	public WebElement SaveReport_button;
	
	/**
	 * Save & Run Report
	 */
	@FindBy(xpath = "//div[@id='editReportSaveAndRun']")
	public WebElement SaveandRunReport_button;
	
	
	/**
	 * Cancel Edit Report
	 */
	@FindBy(xpath = "//div[@id='editReportCancel']")
	public WebElement CancelEditReport_button;
	
	/**
	 * Report Name text field
	 */
	@FindBy (id = "new-report-name")
	public WebElement reportName_textField;
	
	/**
	 * Description text field
	 */
	@FindBy (id = "new-report-desc")
	public WebElement Description_textField;
	
	/**
	 * Folder Drop down List
	 */
	@FindBy (xpath = "//a[@id='ctl00_ctl00_contentBody_cphMain_editReportPrompt_copyToFolderComboTree_ctl00_Arrow']")
	public WebElement Folder_DropdownList;
	
	/**
	 * UPS Reports node in the Folder drop-down list
	 */
	@FindBy (xpath = "//div[@id='ctl00_ctl00_contentBody_cphMain_editReportPrompt_copyToFolderComboTree_ctl00_i0_copyToFolderComboTree_tree']//span[contains(text(),'UPS Reports')]")
	public WebElement UPS_Reports_inFolder_dropDownList;
	
	/**
	 * Added new TextBox
	 */
	@FindBy (xpath = "//input[@id='filter-val-3']")
	public WebElement Third_Filter_TextBox;
	
	/**
	 * FilterLogic TextBox
	 */
	@FindBy (xpath = "//input[@id='filterLogic']")
	public WebElement FilterLogic_TextBox;
	
	
	/*-------------- Text Field---------------------------*/
	
	/**
	 * Text Field Link
	 */
	@FindBy (xpath = "//div[contains(text(),'Text Fields')]")
	public WebElement TextField_Link;
	
	
	/**
	 * Account text field Link
	 */
	@FindBy (xpath="//div[@id='accAvailFields-accordion']/div[2]/div[2]/div[1]")
	public WebElement Account_textfield_Link;
	
	
	/**
	 * Account Audit Name text field Link
	 */
	@FindBy (xpath="//div[@id='accAvailFields-accordion']/div[2]/div[2]/div[2]")
	public WebElement AccountAuditName_textfield_Link;	
	
	/**
	 * Filter field Account drop down list
	 */
	@FindBy(xpath="//div[@id='editReportFilters-panel']/div[1]/select[1]/option[@value='Account']")
	public WebElement Filterfield_Account_Dropdownlist;
	
	/**
	 * EntityName TextField
	 */
	@FindBy(xpath="//div[@id='accAvailFields-accordion']/div[2]/div[2]/div[contains(text(),'Entity Name')]")
	public WebElement EntityName_TextField;
	
	/**
	 * Filter field container
	 */
	@FindBy(xpath="//div[@id='editReportFilters-panel']")
	public WebElement Filterfield_Container;
	
	@FindBy(xpath="//div[@id='accAvailFields-accordion']")
    private List<WebElement> TextField_List;
	
}
